//
//  CCViewStudyViewController.h
//  ClinicalCollections
//
//  Created by Pasirstein, David B on 3/29/13.
//  Copyright (c) 2013 GOPI. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CCVSCustomTypes.h"

//import for helpers to load data
#import "CommonAPI.h"

@interface CCViewStudyViewController : UICollectionViewController <CCVSCustomViewDelegate>


/////////////
// Current Data Model is controlled through an array
// of columns (CCVSColumn objects)
//
// for now all columns MUST have the same number of sections!
@property (strong,nonatomic) NSArray * ccvsColumns;

//controls the layout property.  by default, ccvsColumns
//will be proportionally sized to all fit on the visable
//view.  Setting this to true will allow full sizes
//which may result in horizontal scrolling by the user to see
//all the columns
@property (nonatomic) BOOL disableScaleToFit;

//read-only, reference to see if empty sections will be hidden
//rule of them.  YES if there is only 1 column, NO if more than 1
@property (readonly,nonatomic) BOOL filterEmptySections;


//To use this set of code:
//1) Create a UICollectionViewController
//    in the storyboard. containing 1 section header and 1 cell.
//2) Set the storyboard controller object to "CCViewStudyViewController"
//3) Set the storyboard section header object to "CCVSHeader"
//4) Set the storyboard cell object to "CCVSCell"
//5) the section header should contain a UILabel connected to
//    the label property in CCVSHeader.h.  The UILabel should have
//    properties set on it such as center align and white font color
//6) set the cell's re-use identifier to: CollectionCell
//7) set the headers re-use identifier to: CCVSSectionHeader

//example test code is located at the bottom of CCVSCommon.m


///helper to load and populate the required model
-(void)loadViewDataByNtcID:(NSString *)nctID fromSearch:(Search *)search;

@end
